/*
 * Copyright 2012 ITC Tsinghua University. All Rights Reserved.
 */
package cn.edu.tsinghua.cic.ccss.dto;

import java.util.Date;

import org.forten.core.dto.GeneralDto;

/**
 * 
 * 
 * @author <a href="mailto:du_yi@bbn.cn">Duyi</a>
 * 
 * @since 2012-5-14
 */
public class CourseCanceledDto implements GeneralDto {
	private static final long serialVersionUID = -2257457721638154850L;

	private Long id;// ID
	private long courseId;// 课程ID
	private long cadreId;// 干部ID
	private Date cancelTime;// 退课操作时间
	private String cancelCardId;// 退课课操作人工作证号
	private String cancelReason;// 退课原因
	private String memo;// 备注

	private CourseDto courseDto;
	private CadreDto cadreDto;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public long getCourseId() {
		return courseId;
	}

	public void setCourseId(long courseId) {
		this.courseId = courseId;
	}

	public long getCadreId() {
		return cadreId;
	}

	public void setCadreId(long cadreId) {
		this.cadreId = cadreId;
	}

	public Date getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(Date cancelTime) {
		this.cancelTime = cancelTime;
	}

	public String getCancelCardId() {
		return cancelCardId;
	}

	public void setCancelCardId(String cancelCardId) {
		this.cancelCardId = cancelCardId;
	}

	public String getCancelReason() {
		return cancelReason;
	}

	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public CourseDto getCourseDto() {
		return courseDto;
	}

	public void setCourseDto(CourseDto courseDto) {
		this.courseDto = courseDto;
	}

	public CadreDto getCadreDto() {
		return cadreDto;
	}

	public void setCadreDto(CadreDto cadreDto) {
		this.cadreDto = cadreDto;
	}

	@Override
	public String toString() {
		return "CourseCanceledDto [id=" + id + ", courseId=" + courseId
				+ ", cadreId=" + cadreId + ", cancelTime=" + cancelTime
				+ ", cancelCardId=" + cancelCardId + ", cancelReason="
				+ cancelReason + ", memo=" + memo + ", courseDto=" + courseDto
				+ ", cadreDto=" + cadreDto + "]";
	}
}
